package com.molichuxing.services.infrastructure.service;

import com.molichuxing.framework.dto.Paged;
import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.response.request.create.OperationLogCreateDto;
import com.molichuxing.services.infrastructure.dto.response.response.OperationLogDto;

import java.util.Map;

/**
 * <p>
 * 系统操作日志表 服务类
 * </p>
 *
 * @author xuelin yi
 * @since 2019-09-20
 */
public interface OperationLogService  extends RootService {

    /**
     * 新增操作日志
     * @param createDto
     * @return
     * @throws Exception
     */
    public Boolean createOperationLog(OperationLogCreateDto createDto) throws Exception;

    /**
     * 根据经销商id获取操作日志记录
     * @param map
     * @param pageNum
     * @param pageSize
     * @return
     */
    public Paged<OperationLogDto> getOperationLogByDealerId(Map<String, Object> map, Integer pageNum, Integer pageSize);
    
    /**
     * 获取操作日志记录
     * @param map
     * @param pageNum
     * @param pageSize
     * @return
     */
    public Paged<OperationLogDto> getOperationLogPage(Map<String, Object> map, Integer pageNum, Integer pageSize);

}
